cmake_minimum_required(VERSION 3.0)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

include_directories(${QT_PATH})
link_directories(${QT_LIBPATH})

find_package(Qt5 REQUIRED Widgets
        PATHS ${QT_LIBPATH}
        )

set(BASE_FILES
        CMShowWindowBase.cpp CMShowWindowBase.h
        CMShowQt.cpp CMShowQt.h CMShowQtBase.cpp CMShowQtBase.h
        CMShowQtParabola.cpp CMShowQtParabola.h)

add_executable(cm_demo_qt
        ${BASE_FILES}
        cm_demo_qt.cpp)

target_link_libraries(cm_demo_qt
        Qt5::Widgets)
